
			{{template wxes/_user_wxes}}
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;微信二维码</a></li>
			  <li class="active">编辑二维码</li>
			</ol>
		</div>           
       <hr>
       <h3>微信菜单</h3>
      
<hr>
{{$this->Form->create('Qrcode',array('class'=>'form-horizontal','role'=>'form'))}}
	
	<!-- <div class="form-group"  id="QrcodeType">
		<label class="col-sm-2 control-label">菜单类型</label>
		<div class="col-sm-9 controls select">
			<label id="FristMenu" data-container="body" data-trigger="hover" data-toggle="popover" data-placement="top" name="mt" style="cursor:pointer;" data-content="无需设置上级与点击事件"  title="需要添加下级的菜单"><input name="mt" type="radio">一级菜单</label>
			<label id="SecondMenu" data-container="body" data-trigger="hover" data-toggle="popover" data-placement="top" name="mt" style="cursor:pointer;" data-content="设置上级后，再设置打开连接或事件"  title="二级菜单有上级"><input name="mt" type="radio">二级菜单</label>
			
			<label id="TopMenu" data-container="body" data-trigger="hover" data-toggle="popover" data-placement="top" style="cursor:pointer;" data-content="需要设置打开连接或者回复规则" title="无下级的一级菜单" ><input name="mt" type="radio">顶级菜单</label>
			
		</div>
	</div> -->
	
	<div class="form-group">
		<label class="col-sm-2 control-label" for="QrcodeName">二维码名称</label>
		<div class="col-sm-9 controls">
			{{$this->Form->hidden('id')}}{{$this->Form->hidden('group')}}
			{{$this->Form->input('name',array('class'=>'form-control','required'=>'required','div'=>false,'label'=>false))}}
		</div>
	</div>
	
	{{if $_REQUEST['type']}}
		{{$this->Form->hidden('visible',array('value'=>1))}}
	{{/if}}
	
	<div class="form-group" id="QrcodeParent">
		<label class="col-sm-2 control-label">分类</label>
		<div class="col-sm-9 controls select">
			{{$this->Form->input('cate_id',array('class'=>'form-control','div'=>false,'label'=>false))}}
		</div>
	</div>
	
	<div class="form-group" id="divQrcodeLink">
		<label class="col-sm-2 control-label" for="QrcodeUrl">微信二维码场景串</label>
		<div class="col-sm-9 controls">
			{{$this->Form->input('event',array('class'=>'form-control','type'=>"url",'div'=>false,'label'=>false))}}
		</div>
	</div>

	<div class="form-group" id="divQrcodeLink">
		<label class="col-sm-2 control-label" for="QrcodeUrl">url地址</label>
		<div class="col-sm-9 controls">
			{{$this->Form->input('url',array('class'=>'form-control','type'=>"url",'div'=>false,'label'=>false))}}
		</div>
	</div>

		
			
	
	<div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="提交"></div>
	</div>
{{$this->Form->end()}}
<script>
$(function(){
	/*$('#TopMenu').click(function(){
		$('#QrcodeParent').hide();
		$('#divQrcodeLink').show();
		$('#divQrcodeMediaId').show();
		$('#QrcodeParentId').val('');
	});
	
	$('#FristMenu').click(function(){
		$('#QrcodeParent').hide();
		$('#divQrcodeLink').hide();
		$('#divQrcodeMediaId').hide();
		$('#QrcodeParentId').val('');
	}).trigger('click');
	
	$('#SecondMenu').click(function(){
		$('#QrcodeParent').show();
		$('#divQrcodeLink').show();
		$('#divQrcodeMediaId').show();
		//$('#QrcodeParentId').val('');
	});*/
	
	/*$('#QrcodeType').change(function(){
		if($(this).val()=='view'){
			//$('#divQrcodeLink').show();
			$('#divQrcodeSlug').hide();
		}
		else{
			//$('#divQrcodeLink').hide();
			$('#divQrcodeSlug').show();
		}
	}).trigger('change');*/
})
</script>

